{
  "properties" : { },
  "id" : "copy1741108901804d93657",
  "script" : null,
  "groupId" : "db1752dae044456b895d5a690a0f498d",
  "name" : "获取部署记录",
  "createTime" : null,
  "updateTime" : 1741254907519,
  "lock" : null,
  "createBy" : "可辉",
  "updateBy" : "可辉",
  "path" : "query",
  "method" : "GET",
  "parameters" : [ {
    "name" : "page",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "Integer",
    "type" : null,
    "defaultValue" : "1",
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }, {
    "name" : "limit",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "Integer",
    "type" : null,
    "defaultValue" : "10",
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": [\n        {\n            \"id\": \"0112723b-fa6d-11ef-be97-f4b3016ece8b\",\n            \"name\": \"test_xinxishangbao\",\n            \"time\": \"2025-03-06 17:25:54\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"0f9f8869-fa6c-11ef-be97-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 17:19:09\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"18735c0c-fa6c-11ef-be97-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 17:19:24\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"29222efe-fa6d-11ef-be97-f4b3016ece8b\",\n            \"name\": \"test_ceshiliucheng\",\n            \"time\": \"2025-03-06 17:27:02\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"35b87e3f-fa6c-11ef-be97-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 17:20:13\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"6e7dcc7d-fa6a-11ef-b9a5-f4b3016ece8b\",\n            \"name\": \"SpringAutoDeployment\",\n            \"time\": \"2025-03-06 17:07:29\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"6f129d07-fa6b-11ef-b9a5-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 17:14:40\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"75c8a0ef-fa68-11ef-973e-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 16:53:23\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"83dc24f2-fa68-11ef-973e-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 16:53:46\",\n            \"isNew\": false\n        },\n        {\n            \"id\": \"885406ae-fa6a-11ef-b9a5-f4b3016ece8b\",\n            \"name\": \"UserReport\",\n            \"time\": \"2025-03-06 17:08:13\",\n            \"isNew\": false\n        }\n    ]\n}",
  "description" : "获取部署记录",
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import 'org.activiti.engine.RepositoryService' as repositoryService;
import org.activiti.engine.repository.DeploymentQuery;

DeploymentQuery query = repositoryService.createDeploymentQuery();

var list = query.listPage((page-1) * limit, limit);
var resList = [];
for (item in list) {
    resList.add({id: item.id, name: item.name, time: item.deploymentTime, isNew: item.isNew});
}

return resList;